// 创建假接口
// 1.引入
import Mock from 'mockjs'
<<<<<<< HEAD
import loginData from './loginData'
import CourseClass from './CourseClass'

=======
<<<<<<< HEAD
import financeData from'./financeData'
import CourseClass from './CourseClass'
=======
import financeData from './financeData'

import CourseClass from './CourseClass'

>>>>>>> b215d5d2a7c69e700a3b5004d1fe2b9fe90ece07
>>>>>>> f7cfb8c8c0dc04e038c83cd03fa5d6b0879aa247
Mock.setup({
        timeout: 300
    })
    // login接口
import teacherData from './teacherData'
Mock.setup({
<<<<<<< HEAD
        timeout: 300
    })
    // login接口
Mock.mock(/\/login/, 'post', loginData.getLoginData)

//获取登录用户信息
Mock.mock(/\/userBase/, 'post', loginData.getUserData);

=======
    timeout: 300
})
// login接口
Mock.mock(/\/login/, 'post', {
    code: 200,
    data: {
        token: 'adadada'
    },
<<<<<<< HEAD
    msg:'登录成功'
=======
>>>>>>> f7cfb8c8c0dc04e038c83cd03fa5d6b0879aa247

    msg: '登录成功'
>>>>>>> b215d5d2a7c69e700a3b5004d1fe2b9fe90ece07
})
//接口2 finance父获取数据接口  /financedata
Mock.mock(/\/financedata/, 'get', financeData.getData)


// 接口3删除多条
Mock.mock(/\/batchfinance/, 'post', financeData.batchData)

<<<<<<< HEAD
=======

>>>>>>> b215d5d2a7c69e700a3b5004d1fe2b9fe90ece07



//Course接口
// 获取数据
Mock.mock(/\/ClassInfo/, 'post', CourseClass.getCourse)

// 删除数据
Mock.mock(/\/DeleteClass/, 'post', CourseClass.deleteCourse)

//批量删除数据
Mock.mock(/\/allDelete/, 'post', CourseClass.allDelete)

//编辑数据
Mock.mock(/\/editApi/, 'post', CourseClass.editClass)





//课程查询接口
// Mock.mock(///)
// 接口 /teacherdata获取数据的接口
Mock.mock(/\/teacherdata/, 'get', teacherData.getData)






=======
>>>>>>> b215d5d2a7c69e700a3b5004d1fe2b9fe90ece07






//student 获取数据接口  /studetdata
import StudentData from './StudentData'
Mock.mock(/\/studentdata/, 'get', StudentData.getData)
<<<<<<< HEAD
    // 删除接口
Mock.mock(/\/delstudent/, 'post', StudentData.deletData)

=======
// 删除接口
<<<<<<< HEAD
Mock.mock(/\/delstudent/ , 'post', StudentData.deletData)
=======
Mock.mock(/\/delstudent/, 'post', StudentData.deletData)

>>>>>>> b215d5d2a7c69e700a3b5004d1fe2b9fe90ece07
>>>>>>> f7cfb8c8c0dc04e038c83cd03fa5d6b0879aa247
// /teacherdata删除单条数据接口
Mock.mock(/\/teacherdelete/, 'post', teacherData.deleteData)
    // /teacherdata删除多条数据接口
Mock.mock(/\/batchteacher/, 'post', teacherData.batchData)
    //  /teacherdata添加页面数据接口
Mock.mock(/\/addteacher/, 'post', teacherData.addData)
<<<<<<< HEAD
    //  /teacherdata修改页面数据接口
Mock.mock(/\/updateteacher/, 'post', teacherData.updateData)
=======
//  /teacherdata修改页面数据接口
Mock.mock(/\/updateteacher/, 'post', teacherData.updateData)

>>>>>>> f7cfb8c8c0dc04e038c83cd03fa5d6b0879aa247
